<template>
	<up-tabbar :fixed="true" :placeholder="true" :safeAreaInsetBottom="true" @change="changeTabbar">
		<up-tabbar-item text="首页" icon="home"></up-tabbar-item>
		<up-tabbar-item text="添加" icon="plus"></up-tabbar-item>
		<up-tabbar-item text="我的" icon="account"></up-tabbar-item>
	</up-tabbar>
</template>

<script setup>
	const changeTabbar = (e) => {
		switch (e) {
			case 0:
				vk.redirectTo('/pages/journal/list');
				break
			case 1:
				vk.navigateTo('/pages/journal/add');
				break
			case 2:
				vk.redirectTo('/pages/my/my');
				break
		}
	}
</script>

<style>
</style>